package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.dao.UserMapper;

import com.example.demo.entity.WechatUser;
import com.example.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, WechatUser> implements UserService {
    @Autowired
    private UserMapper userMapper;


    @Override
    public WechatUser queryToken(String token) {
        return userMapper.queryToken(token);
    }

    @Override
    public WechatUser getOpenIdWechat(String openid) {
        return userMapper.getOpenIdWechat(openid);
    }
}
